import request from '@/utils/requestUtil'

export function searchProductList(params) {
	return request({
		method: 'GET',
		url: '/product/search',
		params: params
	})
}

export function fetchCategoryTreeList(locale) {
	return request({
		method: 'GET',
		url: '/product/categoryTreeList?locale=' + locale  
	})
}

export function fetchProductDetail(id , locale) {
	return request({
		method: 'GET',
		url: '/product/detail/'+ id + '?locale=' + locale
	})
}
